package com.fwj.user.entity.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * 表名：user_password_question_record
*/
@ApiModel(value="com.fwj.auth.entity.UserPasswordQuestionRecord")
@Data
@Table(name = "user_password_question_record")
public class UserPasswordQuestionRecord implements Serializable {
    /**
     * 密保问题日志主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value="密保问题日志主键")
    private Long id;

    /**
     * 用户Id
     */
    @Column(name = "user_id")
    @ApiModelProperty(value="用户Id")
    private Long userId;

    /**
     * 问题Id
     */
    @Column(name = "question_id")
    @ApiModelProperty(value="问题Id")
    private Long questionId;

    /**
     * 答案
     */
    @Column(name = "answer")
    @ApiModelProperty(value="答案")
    private String answer;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 密保问题状态 0：废弃  1：使用中
     */
    @Column(name = "status")
    @ApiModelProperty(value="密保问题状态")
    private String status;

    private static final long serialVersionUID = 1L;
}
